.PHONY:all
all:test_thread thread

test_thread:mythread.cc
	g++ -o $@ $^ -lpthread  -std=c++11
thread:thread.cpp
	g++ -o $@ $^ -lpthread  -std=c++11
.PHONY:clean
clean:
	rm -f thread